﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace _300Report.Control
{
    public partial class RoleListControl : UserControl
    {
        public RoleListControl()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 加载图片失败时
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Image_OnImageFailed(object sender, ExceptionRoutedEventArgs e)
        {
              BitmapImage bp =new BitmapImage();
              bp.UriSource = new Uri("/images/image_download_fail_icon.png",UriKind.Relative);
               (sender as Image).Source =bp ;
        }
    }
}
